package sweet.helper

import org.apache.commons.lang._

object StringHelper{
  implicit def string2helper(s: String) = new StringHelper(s)
}

class StringHelper(orig: String) {
  /** We should provide a faster split besides the default String#split which uses regex and it's slow!
   * Will use commons-lang StringUtils for now.
   * NOTE: This split will split by SINGLE CHAR as Separator!!! */
  def fastSplit(charSep: String) = StringUtils.split(orig, charSep) 
  
  def fastReplace(from: String, to: String) = StringUtils.replace(orig, from, to)  
}

